<%--
  Created by IntelliJ IDEA.
  User: zhangkeke
  Date: 2022/10/15
  Time: 08:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>我的账号</title>
  <script src="${pageContext.request.contextPath}/jcript/jquery-1.7.2.js"></script>
  <script>
    alert(3)
    alert(${pages})
  </script>
</head>
<body>
<table style="border:1px solid black">
  <tr>
    <td>支出账号</td>
    <td>收入账号</td>
    <td>交易日期</td>
    <td>业务类型</td>
    <td>交易金额</td>
  </tr>

  <c:forEach items="${pages.pageData}" var="record">
    <tr>
      <td>${record.outPutCard_Id}</td>
      <td>${record.inPutCard_Id}</td>
      <td>${record.date}</td>
      <td>${record.action}</td>
      <td>${record.money}</td>
    </tr>
  </c:forEach>

</table>

<a href="/showRecord">当前页${pages.currentPage}</a>
<c:if test="${pages.currentPage>1}">
  <a href="/showRecord?currentPage=${pages.currentPage-1}">上一页</a>
</c:if>

<c:forEach begin="${pages.beginPage}" end="${pages.endPage}" var="num">
  <c:choose>
    <c:when test="${pages.currentPage==num}">
      ${num}
    </c:when>
    <c:otherwise>
      <a href="/showRecord?currentPage=${num}">[${num}]</a>
    </c:otherwise>
  </c:choose>

</c:forEach>

<c:if test="${pages.currentPage<pages.totalPage}">
  <a href="/showRecord?currentPage=${pages.currentPage+1}">下一页</a>

</c:if>




</body>
</html>
